<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysVehicleTypeBean.id}"/>
		<f:event type="preRenderView" listener="#{sysVehicleTypeBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Vehicle Type"/>

	<ui:define name="header">
		Sys Vehicle Type
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysVehicleTypeBean.id}">
				Edit existing Sys Vehicle Type
			</c:when>
			<c:otherwise>
				Create a new Sys Vehicle Type
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysVehicleTypeBeanSysVehicleTypeSysVehicleType02" value="Sys Vehicle Type 02:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysVehicleType02Bean.converter}" id="sysVehicleTypeBeanSysVehicleTypeSysVehicleType02" value="#{sysVehicleTypeBean.sysVehicleType.sysVehicleType02}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleType02Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysVehicleTypeBeanSysVehicleTypeSysVehicleType02" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleTypeBeanSysVehicleTypeSysVehicleType01" value="Sys Vehicle Type 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysVehicleType01Bean.converter}" id="sysVehicleTypeBeanSysVehicleTypeSysVehicleType01" value="#{sysVehicleTypeBean.sysVehicleType.sysVehicleType01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleType01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysVehicleTypeBeanSysVehicleTypeSysVehicleType01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleTypeBeanSysVehicleTypeVehicleTypeDescr" value="Vehicle Type Descr:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleTypeBeanSysVehicleTypeVehicleTypeDescr" maxLength="50" value="#{sysVehicleTypeBean.sysVehicleType.vehicleTypeDescr}"/>
					<h:message for="sysVehicleTypeBeanSysVehicleTypeVehicleTypeDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleTypeBeanSysVehicleTypeVehicleType03No" value="Vehicle Type 03No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleTypeBeanSysVehicleTypeVehicleType03No" value="#{sysVehicleTypeBean.sysVehicleType.vehicleType03No}"/>
					<h:message for="sysVehicleTypeBeanSysVehicleTypeVehicleType03No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleTypeBeanSysVehicleTypeVehicleTypeStatusNo" value="Vehicle Type Status No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleTypeBeanSysVehicleTypeVehicleTypeStatusNo" value="#{sysVehicleTypeBean.sysVehicleType.vehicleTypeStatusNo}"/>
					<h:message for="sysVehicleTypeBeanSysVehicleTypeVehicleTypeStatusNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleTypeBeanSysVehicleTypeSysVehicleTypeDccNotuseds" value="Sys Vehicle Type Dcc Notuseds:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysVehicleTypeBean.sysVehicleType.sysVehicleTypeDccNotuseds}"/>
					<h:dataTable id="sysVehicleTypeBeanSysVehicleTypeSysVehicleTypeDccNotuseds" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Type Dc No"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleTypeDccNotused/view">
								<f:param name="id" value="#{_item.vehicleTypeDcNo}"/>
								<h:outputText id="itemVehicleTypeDcNo" value="#{_item.vehicleTypeDcNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleTypeDccNotusedBeanAddVehicleTypeDcNo" value="#{sysVehicleTypeDccNotusedBean.add.vehicleTypeDcNo}"/>
								<h:message for="sysVehicleTypeDccNotusedBeanAddVehicleTypeDcNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Approved Min Val"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleTypeDccNotused/view">
								<f:param name="id" value="#{_item.vehicleTypeDcNo}"/>
								<h:outputText id="itemApprovedMinVal" value="#{_item.approvedMinVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleTypeDccNotusedBeanAddApprovedMinVal" value="#{sysVehicleTypeDccNotusedBean.add.approvedMinVal}"/>
								<h:message for="sysVehicleTypeDccNotusedBeanAddApprovedMinVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Approved Max Val"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleTypeDccNotused/view">
								<f:param name="id" value="#{_item.vehicleTypeDcNo}"/>
								<h:outputText id="itemApprovedMaxVal" value="#{_item.approvedMaxVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleTypeDccNotusedBeanAddApprovedMaxVal" value="#{sysVehicleTypeDccNotusedBean.add.approvedMaxVal}"/>
								<h:message for="sysVehicleTypeDccNotusedBeanAddApprovedMaxVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Approved Level Seq No"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleTypeDccNotused/view">
								<f:param name="id" value="#{_item.vehicleTypeDcNo}"/>
								<h:outputText id="itemApprovedLevelSeqNo" value="#{_item.approvedLevelSeqNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleTypeDccNotusedBeanAddApprovedLevelSeqNo" value="#{sysVehicleTypeDccNotusedBean.add.approvedLevelSeqNo}"/>
								<h:message for="sysVehicleTypeDccNotusedBeanAddApprovedLevelSeqNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sysVehicleTypeDccNotusedBean.added)}" id="sysVehicleTypeBeanSysVehicleTypeSysVehicleTypeDccNotusedsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sysVehicleTypeDccNotusedBean.add.sysVehicleType}" value="#{sysVehicleTypeBean.sysVehicleType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleTypeBeanSysVehicleTypeSysVehicleRateTmps" value="Sys Vehicle Rate Tmps:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysVehicleTypeBean.sysVehicleType.sysVehicleRateTmps}"/>
					<h:dataTable id="sysVehicleTypeBeanSysVehicleTypeSysVehicleRateTmps" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Subtype No"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleRateTmp/view">
								<f:param name="id" value="#{_item.vehicleRateNo}"/>
								<h:outputText id="itemVehicleSubtypeNo" value="#{_item.vehicleSubtypeNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleRateTmpBeanAddVehicleSubtypeNo" value="#{sysVehicleRateTmpBean.add.vehicleSubtypeNo}"/>
								<h:message for="sysVehicleRateTmpBeanAddVehicleSubtypeNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Brand No"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleRateTmp/view">
								<f:param name="id" value="#{_item.vehicleRateNo}"/>
								<h:outputText id="itemVehicleBrandNo" value="#{_item.vehicleBrandNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleRateTmpBeanAddVehicleBrandNo" value="#{sysVehicleRateTmpBean.add.vehicleBrandNo}"/>
								<h:message for="sysVehicleRateTmpBeanAddVehicleBrandNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Color No"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleRateTmp/view">
								<f:param name="id" value="#{_item.vehicleRateNo}"/>
								<h:outputText id="itemVehicleColorNo" value="#{_item.vehicleColorNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleRateTmpBeanAddVehicleColorNo" value="#{sysVehicleRateTmpBean.add.vehicleColorNo}"/>
								<h:message for="sysVehicleRateTmpBeanAddVehicleColorNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Model Code"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleRateTmp/view">
								<f:param name="id" value="#{_item.vehicleRateNo}"/>
								<h:outputText id="itemVehicleModelCode" value="#{_item.vehicleModelCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleRateTmpBeanAddVehicleModelCode" maxLength="100" value="#{sysVehicleRateTmpBean.add.vehicleModelCode}"/>
								<h:message for="sysVehicleRateTmpBeanAddVehicleModelCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Number"/>
							</f:facet>
							<h:link outcome="/form/sysVehicleRateTmp/view">
								<f:param name="id" value="#{_item.vehicleRateNo}"/>
								<h:outputText id="itemVehicleNumber" value="#{_item.vehicleNumber}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysVehicleRateTmpBeanAddVehicleNumber" maxLength="50" value="#{sysVehicleRateTmpBean.add.vehicleNumber}"/>
								<h:message for="sysVehicleRateTmpBeanAddVehicleNumber" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sysVehicleRateTmpBean.added)}" id="sysVehicleTypeBeanSysVehicleTypeSysVehicleRateTmpsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sysVehicleRateTmpBean.add.sysVehicleType}" value="#{sysVehicleTypeBean.sysVehicleType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysVehicleTypeBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysVehicleTypeBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysVehicleTypeBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysVehicleTypeBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>